package com.cntcdt.api.service;

import java.util.List;

import com.cntcdt.api.db.model.UpdateDeviceVersionModel;

public interface UpdateDeviceVersionService {
	public List<UpdateDeviceVersionModel> findBySortTime(int sortTime);

	public List<UpdateDeviceVersionModel> findBySortTimeAndUpdateType(int sortTime, int updateType);

	public List<UpdateDeviceVersionModel> findBySortTimeAndVersion(int sortTime, String version);

	public List<UpdateDeviceVersionModel> findBySortTimeAndSearchContent(int sortTime, String searchContent);

	public UpdateDeviceVersionModel findById(int id);

	public UpdateDeviceVersionModel findByTermianl(String terminal);

	public List<UpdateDeviceVersionModel> findBySortTimeAndUpdateTypeAndTerminals(int sortTime, int updateType,
			String terminals);

	public List<UpdateDeviceVersionModel> findBySortTimeAndVersionAndTerminals(int sortTime, String version,
			String terminals);

	public List<UpdateDeviceVersionModel> findBySortTimeAndSearchContentAndTerminals(int sortTime, String searchContent,
			String terminals);

	public List<UpdateDeviceVersionModel> findBySortTimeAndTerminals(int sortTime, String terminals);

	public List<UpdateDeviceVersionModel> findBySortTimeAndVersionAndUpdateType(int sortTime, String version,
			int updateType);

	public List<UpdateDeviceVersionModel> findBySortTimeAndVersionAndUpdateTypeAndTerminals(int sortTime,
			String version, int updateType, String terminals);

	public boolean updateModel(UpdateDeviceVersionModel updateDeviceVersion);

	public List<UpdateDeviceVersionModel> findAllVersion();

	public List<UpdateDeviceVersionModel> findAllVersion2(String terminals);

	public int insertModel(UpdateDeviceVersionModel versionModel);

	public List<UpdateDeviceVersionModel> findAllModel();

	public List<UpdateDeviceVersionModel> findBySortTimeNotInTerminals(int sortTime, String terminals);

	public List<UpdateDeviceVersionModel> findBySortTimeAndSoftVersion(int sortTime, String softVersion);

	public List<UpdateDeviceVersionModel> findBySortTimeAndSoftVersionAndTerminals(int sortTime, String softVersion,
			String terminals);

	public List<UpdateDeviceVersionModel> findBySortTimeAndVersionAndSoftVersionAndUpdateType(int sortTime,
			String version, String softVersion, int updateType);

	public List<UpdateDeviceVersionModel> findBySortTimeAndSoftVersionAndSoftVersion(int sortTime, String version,
			String softVersion);

	public List<UpdateDeviceVersionModel> findBySortTimeAndSoftVersionAndUpdateType(int sortTime, int updateType,
			String softVersion);

	public List<UpdateDeviceVersionModel> findBySortTimeAndVersionAndUpdateTypeAndSoftVersionAndTerminals(int sortTime,
			String version, int updateType, String softVersion, String terminals);
	
	public List<UpdateDeviceVersionModel> findBySortTimeAndVersionAndSoftVersionAndTerminals(int sortTime,
			String version, String softVersion, String terminals);
	
	public List<UpdateDeviceVersionModel> findBySortTimeAndUpdateAndSoftVersionAndTerminals(int sortTime,
			int updateType, String softVersion, String terminals);
}
